Cibiyar Cloudaunar Cloudaƙƙarfan Kasuwanci ta Tallace-tallace: AMPScript da Misalin Shafin Cloud

AMPscript Salesforce-Hadakar Kasuwancin girgije girgije Shafin Shafi

Labari na gaskiya… sana'ata da gaske ta faɗi sama da shekaru goma da suka gabata lokacin da na fara matsayi a matsayin Mai ba da Haɗin Kai Mai ba da shawara ga ExactTarget (yanzu Tallace-tallace Tallace-tallace tallace-tallace). Aiki na ya dauke ni a duk faɗin duniya na taimaka wa kamfanoni wajen haɓaka haɗuwa mai zurfi tare da dandamali kuma na gina ilimin tsarin mulki sosai game da dandalin har aka ɗaukaka ni zuwa Manajan Samfur.

Challengesalubalen Manajan Samfuri na ƙungiyar da ta kasance mallakin mai haɓakawa a ƙarshe ya haifar da ni ci gaba. Organizationungiya ce mai girma, amma ban taɓa gaske ba mallaka samfurin. Don haka, yayin da takwarorina na tallafi, tallace-tallace, da tallan samfura suka dube ni don yin canji na ainihi… gaskiyar magana ita ce, ƙungiyar ci gaba galibi suna aiwatar da wata mafita ta daban kuma zan nemo kwanaki kafin sakin.

Ofaya daga cikin ayyukan na ƙarshe na aiki a kan tsarin rubutun ciki wanda zai ba abokan cinikinmu damar ƙara rubutu zuwa imel ɗin su. Na yi aiki tare da wani Manajan Samfurin kuma mun yi bincike mai yawa… daga karshe mun yanke shawarar samar da tsarin JQuery tare da ayyukanmu, amma gami da damar wucewa da cinye tsararru, amfani da JSON, da sauransu. bayani… har sai ya buge da ci gaba. A farkon zagayen samfura, an watsar da laburarena kuma babban mai haɓakawa ya maye gurbinsa da shi AMPscript.

Shekaru daga baya, da Abokin Tallace-tallace kamfani ni abokin tarayya ne a yanzu yana yin rikitarwa, haɗakar kasuwanci, kuma na sami kaina cikin AMPscript a kowace rana - ko dai haɓaka ƙirar imel na imel ko kuma fitar da Shafukan Cloud. Tabbas, bacin rai na aiki ba dare ba rana tare da AMPscript yana tabbatar min da cewa ba daidai ba ne aka yanke shawarar a wancan lokacin… maganata zata kasance da kyau sosai. Ina jin kamar na koma shirin TRS-80 a BASIC.

Editan da kayi amfani da shi don Shafukan Cloud ba ya gafartawa. Ba ya ɗaukar matsaloli masu sauƙi kamar bayyana canje-canje ko kurakuran haɗi tare da lambarku. A zahiri, zaku iya buga shafin da zai samar da kuskuren sabar 500 kawai. Hakanan akwai filayen suna guda biyu don shafukanku… kar ku tambaye ni dalili.

Pro-tip: Idan Shafukan girgije ba su dawo da bayanan samfurin lokacin da kake shirin bugawa ba kuma ya zama kamar yana aiki ne har abada… zaku jefa kuskure. Idan kun buga ko ta yaya, tabbas zaku share Cloud Page din gaba ɗaya kuma ku fara. Abinda nake tsammani shine cewa kayan aikin da aka ginasu akan su basu da wayewar kai don gano canjin lamba kuma kawai yana cigaba da sarrafa lambar da aka adana.

Baya ga wannan, za ku yi farin cikin sanin yawancin samfuran rubutattun lambobin suna da nasu kuskuren tsara kalmomi. Yay! Abune mai ban tsoro… amma har yanzu kuna iya amfani dashi saboda yana samar da sassauci mai ban mamaki.

Bayanin gefen: Akwai sabon Shafin girgije ExperienceInda yayi kama da kawai sun sake fentin shafin kuma baya samar da wani karin bayani. Gaskiya ina son tsohuwar sigar mafi kyau ga jerin wallafe-wallafe mai matakai-yawa.

Yayinda kamfani na Highbridge yana gina hadaddun, mafita da aka ba Ajax wanda ke hade da tsarin da yawa tare da hada fadada bayanai tare da AMPscript, SSJS, Cloud Pages, da email… Ina so in raba misali mai sauki na yadda zaka fara kawai amfani da AMPscript don tambayar misali na Salesforce ka ja baya bayanai. A wannan yanayin, fili mai sauƙi wanda ke riƙe da tutar maigida sa hannun rajista. Tabbas zaku iya fadada wannan lambar don gina dukkan shafin fifiko ko cibiyar bayanan da zaku iya amfani dasu.

Haɗa Haɗin Haɗin Gidan Yanar Gizo tare da Bayanin Mai Saukewa

Idan kun duba bayanan Shafin girgijen ku, zaku iya mallakar ID na musamman don shafin da zaku iya haɗawa cikin imel ɗin ku.

girgije shafi id

Gaskiyar magana kamar haka:

<a href="%%=RedirectTo(CloudPagesURL(361))=%%">View My Preferences</a>

AMPscript don Bayanai na Tallace-tallace ta Shafukan girgije ta hanyar Fadada Bayanai

Mataki na farko shine gina AMPscript ɗinka don bayyana masu canji da kuma dawo da bayanan daga Salesforce don amfani dasu a cikin shafinku. A cikin wannan misalin, sunan mai suna Salesforce boolean wanda yake riƙe da gaskiya ko karya An Kama:

%%[

/* Declare EVERY variable */
VAR @contactKey,@agent,@referrer,@unsub
VAR @rs,@updateRecord,@checked
 
/* Request your ContactKey from the querystring */
Set @contactKey = Iif(Empty([_subscriberKey]),RequestParameter("contactKey"),[_subscriberKey])

/* Set unsub to false unless it is passed in the querystring */
SET @unsub = Iif(Not Empty(RequestParameter('unsub')),RequestParameter('unsub'),'false')
 
/* If unsub, then update the Salesforce field OptedOut */ 
IF NOT Empty(@unsub) THEN
  SET @updateRecord = UpdateSingleSalesforceObject('contact',@contactKey,'OptedOut', @unsub)
ENDIF

/* Retrieve the Salesforce Contact record */
Set @rs = RetrieveSalesforceObjects('contact', 'FirstName,LastName,OptedOut', 'Id', '=', @contactKey);
 
/* Get the fields from the record */
 IF RowCount(@rs) == 1 then
  var @record, @firstName, @lastName, @optout
  set @record = Row(@rs, 1)
  set @firstName = Field(@record, "FirstName")
  set @lastName = Field(@record, "LastName")
  set @optout = Field(@record, "OptedOut")
ENDIF

/* Build a string for your checkbox to be checked or not
 set @checked = '';
 IF (@optout == 'true') THEN
  set @checked = 'checked'
 ENDIF
 
]%%

Yanzu zaku iya gina HTML ɗinku da fom ɗin da ke aiwatar da buƙatar:

<!DOCTYPE html>
<html>
   <title>Profile Center</title>
   <body>
      <h2>Your Profile:</h2>
      %%[ if RowCount(@rs) == 1 then ]%%
      <ul>
         <li><strong>First Name:</strong> %%=v(@firstName)=%%</li>
         <li><strong>Last Name:</strong> %%=v(@lastName)=%%</li>
         <li><strong>Unsubcribed:</strong> %%=v(@optout)=%%</li>
      </ul>
      <form method="get">
       <div>
         <input type="hidden" id="contactKey" name="contactKey" value="%%=v(@contactKey)=%%">
         <input type="checkbox" id="unsub" name="masterUnsub" value="true" %%=v(@checked)=%%>
         <label for="masterUnsub">Unsubscribe From All</label>
        </div>
       <div>
         <button type="submit">Update</button>
        </div>
     </form>
      %%[ else ]%%
      <p>You don't have a record.</p>
      %%[ endif ]%%
   </body>
</html>

Wannan kenan… hada duka kuma kuna da fifikon shafi wanda aka sabunta shi tare da rikodin mai biyan kuɗin ku kuma ya gabatar da buƙata don sabunta filin boolean (gaskiya / ƙarya) a cikin Salesforce. Yanzu zaku iya gina tambayoyin al'ada a cikin wannan filin don tabbatar da lambobin da suka fita ba'a aika musu da kowane imel ba!

Yadda zaka Inganta Shafin Shafin ka ko Cibiyar Samun bayanan ka

Tabbas, wannan ɗan ƙaramin abin da zai yiwu tare da shafin fifiko. Abubuwan haɓakawa da zaku so kuyi tunani akai:

  • Sanya ainihin rubutu daga wani ƙarin bayanan don ƙungiyar tallan ku na iya sabunta abubuwan da ke cikin shafin a duk lokacin da suke so ba tare da taɓa lambar ba.
  • Ara adadin bayanan ɗab'in bugawa da madauki ta hanyar wallafe-wallafen don bayar da zaɓi ko ficewa a kan abubuwan da aka fi so baya ga maɓallin cire rajista.
  • Aara dalilin haɓaka bayanai don kama dalilin da yasa masu biyan kuɗinka suke ƙarancin rajista.
  • Yaɗa sauran bayanan martaba daga rikodin Salesforce don samar da ƙarin bayanan martaba.
  • Gudanar da shafin tare da Ajax don ku sami damar yin amfani da shi ta hanyar da ba ta dace ba.
  • Bayar da hanyar rajista domin mai amfanin ku zai iya samun damar cibiyar bayanan su a kowane lokaci.

Resourcesarin Bayanai don AMPscript

Idan kuna neman ƙarin taimako don koyo da tura AMPscript, anan akwai manyan albarkatu:

  • AMPscript Jagorae - wanda wasu ma'aikatan Salesforce suka shirya, wannan cikakkiyar cikakkiyar matattarar bayanai ce ta tsarin aiki na AMPscript, kodayake misalan suna da haske sosai. Idan ya fi ƙarfi, da zai iya dacewa da saka hannun jarin.
  • Trailhead AMPscript - Trailhead na Salesforce hanya ce ta ilmantarwa kyauta kuma zata iya tafiya da ku ta hanyar tushen harshe tare da AMPscript, SSJS, da kuma yadda biyun zasu iya hulɗa.
  • Exchangeididdigar forira don Tallatawa - babbar al'umma ta yanar gizo don neman taimako tare da tarin samfuran lambar AMPscript.

Akwai tarin dama a cikin haɗa Shafukanku na Cloud tare da Salesforce don samar da ƙwarewar mai amfani. Kuma idan kamfanin ku yana gwagwarmaya, zaku iya tuntuɓar mu koyaushe don taimakawa!

lamba Highbridge

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.