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
Anvesh Shetty said:But this doesn't seem to be working
What does this mean? And, we will need more details.
What do you try to implement? You are aware of the record usage log file?
On record summary load, you want to auto-write data to a Record/entity?Explain your requirement little more.
Yes You are right. It should auto write to record/entity.
No, I am not. I want to auto write some data into records/entity on interface load.
Use-case aside, have you tested this with a manual button that triggers the integration->API loop back? It looks like the error you're receiving might not be related to the automatic call on page load.
I agree that the record usage log file is better for analyzing user behaviors from a "how many people visited a page" perspective. The main thing it won't have is the context of what the user sees on that page given the user's role and the page's logic.
If there are explicit audit requirements related to pages where the data displayed must be compartmentalized based upon user role, there is a better way than a integration->API loop back. It's a better idea to create two separate record summary views aligned to each type of data compartmentalization, and then set their visibility in the Record Type based upon the role. The record usage log then is good enough for auditing such a scenario, with no additional problems related to automatic record writes on page load.
Jesse Knight On testing web API object, its writing data successfully
But when I try to trigger it from Integration object I created, Its not writing any data and response as below
confused where I am going wrong?
Seems like an authentication issue.
Sure, but for what purpose?