Skip to main content
Nintex Community Menu Bar

How to call a URL in K2 workflow

  • Aug 10, 2021 3:45 PM UTC
  • 4 replies
  • 139 views
  • Translate All

Hi All,

 

I have a scenario where, I need to update the status of the approval by calling an API/ URL. How do i call the URL, after the approval? i can't use REST service instance, as this URL is not constant.

 

sample URL: http://mydomain/api/user/role/{requestid}/{status}/{comments}

 

Thanks,

Pradeep

4 replies

Forum|alt.badge.img+5
  • Rookie
  • Aug 11, 2021 5:37 AM UTC

One way to do this is create a custom smartobject (c#) that would call the web service/rest endpoint or url and then call that custom smartobject in the workflow.

If you need help doing this, contact us at https://zealops.com

Translate

  • Nintex Partner
  • Aug 11, 2021 10:34 AM UTC
Hi pnelli,

What do you mean with 'this URL is not constant'?

What is the request you want to make? HTTP GET? POST?
Translate

  • Author
  • Aug 13, 2021 4:50 AM UTC
Thanks. Will try this.
Translate

  • Author
  • Aug 13, 2021 4:52 AM UTC
Hi Thomas,

I want to make post request. I know that we can use REST Service instance, but my requirement is that the API differs in different environments. I am trying to do a generic way.

Thanks,
Pradeep
Translate