• fdsvgf fvdvfd
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I need to send a notification to Salescloud that an email has been sent or has failed from 
 Marketing cloud on the Email send object.
 
I see the code that has bits and pieces of what I need but I'm not sure if I USE "
 
#Salesforce Developer
IF _messagecontext == 'Send' THEN
" to start the block.
%%[ var @Id, @firstName, @lastName, @email, @subscriberRows, @subscriberRow set @Id = _subscriberKey if RequestParameter("submitted") != true then set @subscriberRows = RetrieveSalesforceObjects( "Contact", "FirstName,LastName,Email", "Id", "=", @Id ) set @subscriberRow = Row(@subscriberRows, 1) set @firstName = Field(@subscriberRow, "FirstName") set @lastName = Field(@subscriberRow, "LastName") set @email = Field(@subscriberRow, "Email") else var @updateRecord set @firstname = RequestParameter("firstname") set @lastName = RequestParameter("lastname") set @email = RequestParameter("email") set @updateRecord = UpdateSingleSalesforceObject( "Contact", @Id, "FirstName", @firstname, "LastName", @lastName, "Email", @email ) endif ]%% <!DOCTYPE html> <html> <body> %%[ if @updateRecord == 1 then ]%% <p>Record Updated</p> %%[ elseif @updateRecord == 0 then ]%% <p>Update Failed</p> %%[ endif ]%% <h2>Update Your Details</h2> <form action="%%=RequestParameter('PAGEURL')=%%" method="post"> <label>First name</label> <input type="text" name="firstname" value="%%=v(@firstName)=%%"> <label>Last name</label> <input type="text" name="lastname" value="%%=v(@lastName)=%%"> <label>Email</label> <input type="text" name="email" value="%%=v(@email)=%%"> <input name="submitted" type="hidden" value="true" /> <input type="submit" value="Submit"> </form> </body> </html>
The best Solution for reestablish damaged, corrupted of OST file data set things is to utilize SysVita OST to PST Converter Software, which can likewise fix corruption errors & repair OST files right. This OST to PST Conversion Software rapidly and easily reestablishes lost mailbox from any bad, harmed, or encoded OST file. It likewise has a see highlight for OST records inward things like assignments, contacts, messages, contacts, discussions, notes, diaries, arrangements, etc. OST documents can be changed over to PST, EML, MBOX, CSV, and vCard, MSG, HTML, PDF, Gmail, Yahoo, AOL, and OFFICE 365 Cloud utilizing the Software.
visit: https://www.sysvita.com/convert-ost-to-pst.php