Changes

Jump to: navigation, search

Creating SmartConnect Functions

1,705 bytes added, 16:55, 11 October 2018
no edit summary
No parameters are needed to retrieve metadata.
<span style="color: #ff0000;">Available in November 2018 Upgrade</span>
 
====Get Metadata from Contacts====
<!--63342 - SmartConnect API - metadata option to include Orgs/Contacts-->
No parameters are needed to retrieve metadata.
<span style="color: #ff0000;">Available in November 2018 Upgrade</span>
 
===Report===
This function will retrieve the results of the query from an existing report by using the [[Determining_the_reportid|'''reportid''']].
'''Field List'''  - sf_Name;;sf_Type ID;;sf_Status ID;;sf_Company ID;;sf_Person ID;;sf_Owner ID;;sf_Start Date;;sf_End Date;;cf_1523228
<u>'''Sample 1E '''</u> <br/>
'''Description''' - to add a new UTA L1 record<br />
'''Mandatory fields''' to add new records:<br />
[[File:APIFunctionUpdateUtaL1a.PNG|800px]]
=====Create/Update UTA L2 record=====
'''Function Name'''  -  3.05.1.4 Create/update UTA L2 record<br />
'''Description'''  - Create new records or update UTA L2 records<br />
'''Object Type'''  -  Submission Manager - Activity <br />
'''Action Type '''  -  Update<br />
'''Field List'''  - sf_Subject;;sf_Type ID;;sf_Status ID;;sf_Owner ID;;sf_Start Date;;sf_End Date;;sf_Parent ID;;cf_Payment Notes
 
<u>'''Sample 1G '''</u><br/>
'''Description''' - to add a new UTA L2 record<br />
'''Mandatory fields''' to add new records:<br />
recordid - to create new record, recordid should be '0'<br />
sf_Parent ID - parent of the UTA L2 record. use "objectid" in place of sf_Parent ID to update<br />
sf_Type ID - assigned [[Determining_the_typeid#Level_2_Template|Type ID]] of the new UTA L2 record.<br />
sf_Status ID - assigned [[Determining_the_statusid|Status ID]] of the new UTA L2 record.<br />
--Begin custom parameter --<br />
jsonrset : [{"recordid":"0","objectid":"10697883","sf_Type ID":"49096","sf_Status ID":"49093","sf_Start Date":"2018-10-01","sf_End Date":"2018-11-01","cf_Payment Notes":"new record added as an example"}]<br />
--End custom parameter--
 
[[File:APIFunctionUpdateUtaL2a.PNG|800px]]
 
<u>'''Sample 1H '''</u><br/>
'''Description''' - to update existing UTA L2 record<br />
'''Mandatory fields''' to update a custom field "Payment Notes" of an existing records:<br />
recordid - is the [[Determining_the_eventid|Event ID]] of existing record.<br />
--Begin custom parameter --<br />
jsonrset : [{"recordid":"10020959 ","cf_Payment Notes":"Change value of this custom field thru API function"}]<br />
--End custom parameter--
 
[[File:APIFunctionUpdateUtaL2b.PNG|800px]]
====Update Multiple Addresses====
=====Update/create multiple address record of an Organization=====
Smartstaff
1,385
edits

Navigation menu