1
vote
Accepted
Error - Invalid field 'Shares' for CustomObject__c
SObject.get(fieldName) returns the value for the field specified by fieldName. Shares is the relationship name, it isn't a field of your custom object, that's why you got that error.
In a parent-to-...
1
vote
Accepted
How to Update Salesforce Custom Object through AmpScript in Marketing Cloud
If you take a look at the UpdateSingleSalesforceObject function. You will see the description for the 2nd parameter is: "Record identifier to update" which means the record Id of the object.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
custom-object × 1488apex × 376
visualforce × 232
custom-field × 181
trigger × 108
soql × 86
lookup × 74
standard-objects × 62
relationships × 61
custom-button × 59
managed-package × 56
related-list × 44
page-layout × 40
master-detail × 40
reporting × 38
formula-field × 32
formula × 28
picklist × 27
lightning × 26
permissions × 25
administration × 25
record × 25
community × 24
visual-workflow × 24
customsetting × 24