View Full Version : Custom headers with DirectMethod

Jun 07, 2021, 10:12 AM
As per title, is there a way to submit custom headers with a DirectMethod call?

Jun 08, 2021, 9:06 PM
Hello @ampathdev!

You can pass custom request headers by calling the direct method with a config object containing a requests member. If your direct method has parameters, the config object should be placed after the last direct method parameter.


App.direct.MyDirectMethod(myActualArgument, {
headers: {
'X-Custom-Header': 'Custom header value.'

Hope this helps!