cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Record Id using SAP MDM Java API

Former Member
0 Kudos

Hi,

How to retrieve the Reord Id of those records, that are linked to a workflow job, using SAP MDM Java API's.

Can anyone please let me know the class name. The input for this class will be Workflow job id.

I am using SP06.

Thanks,

Priya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Priya,

Check the below code, you will get the required classes to be used.

RetrieveWorkflowTasksCommand r1 = null;

WorkflowTask w[]=null;

TableId t1=new TableId(1);

r1=new RetrieveWorkflowTasksCommand(connections);

r1.setSession(sessionId);

r1.setTableId(t1);

w = r1.getWorkflowTasks(); // For retrieving the workflow tasks

RecordId r[] = null;

r = w[0].getJob().getRecords(); // Fetch the records present in the first workflowtask.

Kindly update us....

Regards,

Jitesh Talreja

Former Member
0 Kudos

Hi Jitesh,

Thanks a lot for the code, It worked.

Thanks & Regards,

Priya.

Answers (0)