cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Add String Data to Input Mapping fields on an API Action Call

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Likes
1,183

Hello

I have a simple approval workflow that results in an API call to create a project in S/4HANA Cloud. When you map the Inputs from the data type to the API fields in the Action mapping, you can only select fields.

1. How can I append string values to the fields submitted? For example, if I wanted OrgID to have another 3 character reference after it? Unlike some other areas like email address I cannot type in these input boxes.

2. How can I create static string data in these fields? For example, if I wanted to populate the OrgID in the automation versus have the Build App submit it, what is the best approach?

Thanks,
Marty

View Entire Topic
Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

You could use a decision table to take as input the original string and then output the string with 3 extra characters. Just make a rule where for input you leave it blank (meaning any value) and the output you just make originalString + 'ABC'.

I think this could also work for the static string case.

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Likes

Thank you very much Daniel, based on some quick testing this will fit the need to update some fields!

vbalko-claimate
Contributor
0 Likes

It is pitty, that BUILD dont have some kind of expression (if not script, which is more pro code, not citizen developer thing) step for those small modifications and transformations inside project. Of course, you still can use workflow step and make those things in script step inside WFM workflow - but it is quite big caliber for such small thing.

vbalko-claimate
Contributor
0 Likes

daniel.wroblewski - reading this answer - it came to my mind, that recently we used decision step in customer project (in build proc. aut), but we cant figure out how to update (configure) decision on test/prod environment after promoting (transporting) that process. Only way we were able to make it done was to export on dev and import in test/prod manually and until, the project was not released, we were able to modify decision table. But promoting and importing from CTMS makes that project automatically released (and it is right thing, because dev pipeline), but it prevents also customizing procedures unavailable - and that is strange.

What is right way to do that?

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

Thanks for comments. Are you saying you want a way to update the decision table (or at least some of the values) without having to release and deploy the project again (which is causing you to go through complicated change management)?

vbalko-claimate
Contributor
0 Likes

daniel.wroblewski ,

In OG times of Workflow management, we created workflows and transported them using CI/CD and CTMS to the test and prod environment. Along with workflows, we created also Business Rules project (using Manage Rule project app), which was used by afforementioned workflow to store data which are dependent on landscape level (dev, test, prod) eg. list of approvers for each approval level, URL for launchpad etc... Those data have to be editable on each level (dev,test, prod), even when the rule itself (meaning structure and implementation of rule) is read only. Usually you have different approvers on prod than on test.

But in BUILD, when I create project which contains DECISION step, and promote (transport) that project to test/prod subaccount, I cannot modify that DECISION. So I cannot set prod approvers, because DECISION table is not editable.

I`m struggling, if it is just some temporary bug, or with introduction of BUILD, the role of Decision step changed and I`m using it in wrong way.

I`m wondering, if this discussion is done on correct place - maybe we should move to mail or some slack channel.