Create Related Records from Event Object
We have requirement to create Activities, Submissions and Regulatory Objectives via Events. We are able to create it using "user action" from Front end, Tried using API call but we are unable to achieve.
Note : I am getting Success response, but nothing got created when verified in the environment. Also i haven't provided the below mandatory fields while executing API since i'm not sure where i can find the backend field details like "Create Records" and "Activity scope level" etc.
Kindly correct me if I'm missing anything here.
When you are executing user actions through the API, you will first need retrieve the user action name. The action name can change if the action is configured on multiple lifecycle states or different objects. You can use the following api call to retrieve the user action name:
You can then initiate that action on multiple records by providing the user action on multiple Vault object records by using the following API call:
One thing to consider is the records must be in the same lifecycle state. If they are not, the user action name will not be the same.
Thank you for your response, I have checked for one event only. It is in Planned state. Yes i have used that API to retrieve the available user actions.
Also i couldn't see that user action "Create related records" in planned state. Is this the OOTB functionality?
API used - https://sb-gsk-rps-sierra-migration.veevavault.com/api/v22.3/vobjects/event__rim/A0Z000000001001/actions/Objectaction.event__rim.create_relate_records__v0
That user action isn't designed to be called via API. It requires a user to make a series of choices in the UI, and those selections cannot be passed in programmatically.0
Please sign in to leave a comment.