cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Cloud Platform Workflow Service Task header

Muniyappan
Active Contributor
0 Kudos

Hi All,

Is there anyway to add http headers when calling rest services from workflow service call? I see this scp-workflow-service-task-headers thread for the same question.

Still the status remains same or anything new has beed added ?

https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/a8a6267f537841fbb22c159ba2a...

I am calling googlesheet api from workflow with open connector to add new row after task has been approved. In order to call open connector url, i need to pass authorization header. Time being i am creating iflow in CPI to call open connector url and calling iflow from worklfow.

Regards,

Muni

Accepted Solutions (0)

Answers (5)

Answers (5)

tobias_breyer
Contributor

Hi Muni,

setting HTTP headers is still not possible. It is on our roadmap, but I cannot tell you a concrete timeline.

In your case, I wonder why you try to use the Authentication header. Isn't the Google Sheets API accessible using OAuth2 Client Credentials?

See

https://developers.google.com/sheets/api/guides/authorizing

You could store the credentials in the destination used at the service task. That keeps the confidentiality of the API credentials and lets the workflow engine manage the authentication.


Regards,

Tobias

0 Kudos

Hi all,

I had a similar question about adding header parameters to the request - our requirement is to call an API which requires an api key value in the header. Is there any way to handle this form the WF service task?

Best regards,

MaryM

0 Kudos

Hi Christian,

setting custom header parameters feature is still on the roadmap, currently planned for Q1 2021, however this timeline could change, based on current priorities.

You have another option to trigger iRPA APIs though - you can add the trigger token as part of the payload, when you trigger the API:

{

“irpaTriggerToken” : <your token>,

}

Hope this helps?

Best regards,

Krassimir

Sesh_Sreenivas
Product and Topic Expert
Product and Topic Expert
0 Kudos

A sample context could be something like this. Note the input and invocationContext properties. The input should match the iRPA bot's input (if any), and the invocation context is relevant when you want to pass the control back to workflow after the bot execution (achieved via intermediate message event in the workflow)

{
	"irpaTriggerToken": "kabiudqiweuyqwe9734",
	"invocationContext":{
		"key": "1000010",
		"workflowDefID": "capexapproval",
		"messageDefID": "imtermediatemessageevent1"
	},
	"input": {
		"requestID": "1000010",
		"Title": "Build mobile apps",
		"TotalCost": 10000,
		"Type": "Software",
		"Objective": "Buildling new mobile apps",
		"CAPEX": 10000,
		"OPEX": 2000,
		"ROI": 5,
		"IRR": 5,
		"Country": "Germany",
		"Currency": "EUR",
		"Division": "BPM"
	}
}
renandmc
Explorer
0 Kudos

https://help.sap.com/viewer/e157c391253b4ecd93647bf232d18a83/LATEST/en-US/bfefca76d3814fd4a571d6f610...

according to the documentation, in the properties of the service task there should be a tab header, but that tab does not appear, an image of the properties follows

anja_monakova
Explorer
0 Kudos

Hi Christian,

You can also call the API trigger of SAP intelligent RPA by providing the token in the irpaTriggerToken property of the trigger payload. This property should be defined on the top level of the payload, next to the invocationContext and input properties.

Best Regards,

Anja

christian_fastje88
Discoverer
0 Kudos

Hello tobias.breyer,

is there any update on this feature? I'd like to connect my workflow service task with SAP iRPA API Trigger. This trigger requires a the property "irpa-trigger-token" to be set in the header of the request. Unfortunately I cannot set it. Or is there another way to connect to SAP iRPA via API Business Hub?

Regards,

Christian