[progress Communities] [progress Openedge Abl] Forum Post: Re: How To Get Application Id In...

  • Thread starter Thread starter Shiva Duriseati
  • Start date Start date
Status
Not open for further replies.
S

Shiva Duriseati

Guest
Hi Kasipat, There is no direct API which list application id from server side. But still you can make REST calls in the trigger. The following code uses two rest calls, first one will get sessionId and second will be passed to another rest call. var url = " localhost:8080/.../login"; var params = {"loginName":"shiva.durshetti@gmail.com","password":"iworkinprogress"}; var resp = rbv_api.sendHttpPost(url, null,params, null); var sessionId=String(resp.match(/ (.*) /g)).replace(/ ]+(>|$)/g, "");//This will retrieve the session id from the response var appId=" localhost:8080/.../getApplicationIds var appParams={"sessionId":sessionId}; var appIds = rbv_api.sendHttpGet(appId); rbv_api.print(appIds); Regards, Shiva

Continue reading...
 
Status
Not open for further replies.
Back
Top