Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

AMPScript creating multiple entries

$
0
0
%%[set @id = _subscriberkeyset @communities = 'Community-id' /* replace this id with your community ID */var @createdemographicset @createdemographic = CreateSalesforceObject('Demographics__c', 5,'Contact__c', @id,'Community__c', @communities,'Answer__c', 'Yes','Name', 'Requested a call back?','MCSource__c', 'CALLBACK-6JUNE')]%%

This is my AMPSCRIPT to create a new record for my custom object 'Demographics'. This creates multiple entries when the user visits the cloud page. How can I limit it to just one entry per contact?


Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>