Skip to main content
Solved

IFS Cloud 24R2 - REST API call via workflows - externalize User/Password

  • Jan 16, 2025 6:08 PM UTC
  • 4 replies
  • 264 views

Forum|alt.badge.img+10

Hi All,

I am trying to call a REST API and it has Basic Authorization. User and password were defined in ‘IFS REST Task Configurations’ as the first step.
My problem is, I need to create an ‘AuthHeader’ using User and Password in an inline script. However it looks like you cannot refer values defined in REST Task Configurations in an inline script.
Although it is possible to hard-code user and password in an inline script, I am trying to figure out how to externalize user/password using 24R2 new feature ‘REST Task Configurations’.

Does anyone know how to utilise REST Task Configurations for defining user and password for basic Authorization?

Best answer by kamnlk

Hi,

if possible, you can try to pre create the “AuthHeader” and store it in the ‘IFS REST Task Configurations` and refer that in the workflow ?

View original

4 replies

Forum|alt.badge.img+9
  • Hero (Employee)
  • Answer
  • Jan 17, 2025 4:01 AM UTC

Hi,

if possible, you can try to pre create the “AuthHeader” and store it in the ‘IFS REST Task Configurations` and refer that in the workflow ?


Forum|alt.badge.img+10
  • Author
  • Sidekick (Partner)
  • Jan 17, 2025 9:12 AM UTC

​@kamnlk ,

If you have done this successfully , please provide an example.
 


Forum|alt.badge.img+9
  • Hero (Employee)
  • Jan 17, 2025 10:51 AM UTC

​@GaSoGB 

would it be possible to share a sample workflow/screenshot on how the request supposed to be like. It would help lot more into identifying the issue you are facing 


Forum|alt.badge.img+10
  • Author
  • Sidekick (Partner)
  • Jan 17, 2025 11:18 AM UTC

​@kamnlk ,
Apologies,  you are absolutely correct. I was able to make it work.