Lee Savidge Posted June 20 Posted June 20 When creating smart events I do a lot of HTTP POST types. In the properties of that, I can pass values out in the arguments box and I use the key/value pairs for example: sessionid={!USERPROFILE.SESSIONID!} endpoint={!API_ENDPOINT!} useremail={!USERPROFILE.EMAIL!} authkey={!COMPANY.AUTH_KEY!} entityid={!CUSTOMER.MEGAENTITYID!} customerid={!CUSTOMER.CUSTOMERID!} terms={!CUSTOMER.TERMNAME!} creditlimit={!CUSTOMER.CREDITLIMIT!} totaldue={!CUSTOMER.TOTALDUE!} This is just an example against the customer object, however, I also pick up the session ID from the USERPROFILE object, an auth key from the COMPANY object, and the API_ENDPOINT. All of the objects or parameters that are not on the CUSTOMER object are universal objects and values which I got from here https://www.intacct.com/ia/docs/en_US/help_action/More/Customization_and_Platform_Services/Injections_and_Conditions/injection-parameters.htm?cshid=Injection_parameters Is there a complete list of universal objects and their fields or are these all of them? I assume, from the COMPANY object, I can pick up any field off the company. Are there any others in the USERPROFILE? Finally, on the COMPANY object, there is a TYPE field which denotes live, implementation, etc. What are the possible values that the COMPANY.TYPE can be? The reason I ask is that the HTTP POST endpoint that I created needs to be doing different things depending on the company type. In the develolper reference https://developer.intacct.com/api/#company-and-console there isn't anything about COMPANY that I can see. I can do this in a query in Postman: <function controlid="{{$guid}}"> <readByQuery> <object>COMPANY</object> <fields>*</fields> <query/> <pagesize>1000</pagesize> </readByQuery> </function> This does return the company object and its values. When connecting to an implementation and a live system, the COMPANY.TYPE values are implementation and production, so I can't easily guess what they should be.
Members Sterio, Louis Posted June 20 Members Posted June 20 I don't have the full list of global merge fields. It would be nice to have that documented. @Manske, Karsten is this something we can track and ask engineering to provide and we can get it documented on the developer portal. I think it would be useful. In terms of the company types here are all of them: 1
Recommended Posts