Write Records/Write Data store on record summary load

Certified Senior Developer

Hi Community,

I was exploring a scenario, where when user loads records summary page, I want write some data into Records /enitty.

I tried to create a web API which writes records, an integration to connect the web API, call that integration from local variable inside the interface. But this doesn't seem to be working.

When I tested web api from integration object , I am getting below details as response but its not writing the data 

  

Any work around or other approach to achieve this?

Thanks in advance

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to Anvesh Shetty

    Seems like an authentication issue.

  • 0
    Certified Lead Developer
    in reply to Stefan Helzle

    The html block in they body looks like the start of an html page rather than Appian's bad authentication response. Navigating to the URL of the API shows that the user has 2 options to login - one SAML and one manual. In an environment like this, I've seen the full response of the session-authentication-based API call is the selection page rather than authentication via either mechanism. Ironically  , this setup likely works smoothly in a production-like environment where SAML is the only easily accessible login option.

    For longer-term use cases with loopback integrations (e.g. configurable API performance testing in lower environments), I've only been able to make the integration usable in all circumstances by using an API key. Just keep in mind that using an API key tied to an anonymous service account generally violates / circumvents the intent of Appian's core security construct that a user is only able to see / do what is defined by the group security hierarchies. It's akin to the common (but almost always incorrect in regulated environments) practice of "Run as whoever designed the process model" checkbox in PM's.