on 03-07-2016 7:13 PM
Hello Experts,
I am able to add records in MDM but my problem is that I can only add one record per workflow job. I have several records in a catalog and I need these records to be in a single workflow job. As compared when importing via Import Manager, I can see several records in a single workflow.
Can anyone provide me a code snippet? TIA!
Hi Wilson,
You can do this by using the AddRecordsToWorflowJobCommand.
The WorkflowJobId (required) can be retrieved in 2 steps:
1) Run the RetrieveWorkflowsCommand. This command gives you a list of all workflows. Just loop over this list and retrieve the required workflow(for instance by looking on workflow-name).
2) Once you find the required workflow (the workflow-id that is), run the CreateWorkflowJobCommand. This instantiates a workflow job. With the Id you receive as the response, you can then run the AddRecordsToWorflowJobCommand and add the specific records.
Let me know if this suffices.
Good luck,
Gerwin Jansen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.