cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK Changeset Response

12-17-2021 11:52 PM
CRVMANISH Contributor
2086 views 6 comments
0 Likes
SAP Managed Tags
Subscribe

Hi Experts,

I have override the changeset action to POST records in backend online scenario , I am using ActionResults and Success/Failure to capture changeset response but I get actionResult.data as undefined and empty

Backend response.

bill.froelich

Please suggest.

Regards

Manish

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

learner1
Explorer
0 Likes

Hi @bill_froelich as per the last response to get the details of the committed records the work around is to make read call with query parameters. Do you mean we will need to pass the key parameters those used for record creation or can use @odata:readLink in the read API? can you please advise?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

The OnSuccess of the Change Set doesn't have any data associated with it so I would expect the action result to be empty. Since the Change Set usually involves more than one OData actions (create/update), if you need to access the action result from one of the actions then you would want to attach a rule to the OnSucess of the individual action. If you only want to use that data if the overall change set is successful you can just temporarily store the action result and then reference from the change set OnSuccess rule.

CRVMANISH
Contributor
0 Likes

Hi bill.froelich

In ActiopnResult.data of oData Action(create/update) we get only what is posted in pending , not the response.

Any suggestions, see below.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

Manish,

I checked with the team and since the change set is not committed you will not see the response. They suggested a possible workaround is to use the read API and query option to get the committed entity value in the change set OnSuccess action.

--Bill

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

Where are you calling your rule, in the OnSuccess of the ChangeSet or the OnSuccess of the CreateEntity?

CRVMANISH
Contributor
0 Likes

Hi bill.froelich

Yes on OnSuccess of the ChangeSet.

Regards

Manish