Skip to main content
November 15, 2023
Question

Integration call WebAPI to save data got error

  • November 15, 2023
  • 3 replies
  • 0 views

I've created an WebAPI to save data by a!writeRecords(by WebAPI creation wizard)

it worked fine when I test it by "TEST REQUEST" button, but when I call it by an Integrations, got error of

{"message":"Write request has failed","error":"The input \"Records\" refers to an invalid record type. The record type does not exist, has been deleted, or the user does not have sufficient privileges to access the data."}

I have create a Service Account, add SA to the security config with Administrator permission, to all objects, include WebAPI, RecordType

Also add the API Key(Appian-API-Key) to Connected System.

Can anyone help me?

    3 replies

    stefanhelzle0001
    November 15, 2023

    First, providing admin permissions to a service account is probably not a good idea.

    Did you check the tomcat-stdout log file for any details?

    Did you check permissions of the connected system used in the record data source?

    November 15, 2023

    How to check permissions of the connected system used in the record data source?

    stefanhelzle0001
    November 15, 2023

    Did you check the tomcat-stdout log file for any details?

    That record uses some sort of data source. Probably the MariaDB aka Cloud Database. The connection to it is defined using a connected system object.

    Find the general info about record security here: https://docs.appian.com/suite/help/23.4/appian-records-security.html

    And connected system security here: docs.appian.com/.../Connected_System_Object.html