pnelli
Scholar

How to call a URL in K2 workflow

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

Labels: (1)
0 Kudos
Reply
4 Replies
Rusty02
Scholar

Re: How to call a URL in K2 workflow

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

0 Kudos
Reply
thomas_Indocs
Novice

Re: How to call a URL in K2 workflow

Hi pnelli,

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

What is the request you want to make? HTTP GET? POST?
0 Kudos
Reply
pnelli
Scholar

Re: How to call a URL in K2 workflow

Thanks. Will try this.
0 Kudos
Reply
pnelli
Scholar

Re: How to call a URL in K2 workflow

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
0 Kudos
Reply