This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to approve a pending request via the AppServer API

Hi,

I am currently working on a project that requires an iOS app to talk to the D1IM API. 

This is working perfectly and I can pull out the information I need and present it in the app.

However I am having trouble on how to approve a pending request via the api. Having looked into this for quite some time some suggestions were to call MakeDecision method on the PersonWantsOrg record.
I have tried calling the MakeDecision method on the specific PersonWantsOrg record. This gives me a MakeDecision method not found. 

Is there a specific script I can call via the API that will approve this pending request? I am quite lost as to where to look next.

Thanks again,

 

Ash

  • Hi Ash,

    I'm currently working in the same. I'm able to call the method MakeDecision using a system user to approve the request. Are you trying using an Employee or a System user? My goal is to approve the request using a Role based Employee, but it gave me the error "You're not allowed to call methods". It only worked using the system user
  • If you are using a normal user, role-based or not is irrelevant, the user needs to have a program function assigned called Common_StartCustomizerMethods.

    These program function can be assigned to permission groups and you just need to ensure, that your logged in user is a member of a permission group with that program function assigned.

    For role-based groups that means that your person has to assigned to an application role, where a permission group is assigned that grants the person access to the program function mentioned.