I have a custom object in Salesforce with a set of fields. Some of the fields I sent over by an invocable method which calls a future method to send the first set of fields to entity in an external system.
I want to send the rest of the fields from the same Salesforce object to a second entity in the external system once I get the external Id back from the first set of Fields, since the second external entity is a child of the first entity.
In my put callout I call a invocable method for the first set of fields and from this same invocable method call a second method for the other fields since I already have an external id. How do I achieve this for the Post callout since I have to wait for the external id?
Is there a function for this I can use (like send until external id true) or do I need to write a separate trigger(with flag on first run) on update external Id to send the second set of fields for the post callout?