This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
AMPscript.com | |
*/ | |
SET @rr = CreateObject("RetrieveRequest") | |
SetObjectProperty(@rr, "ObjectType", "List") | |
AddObjectArrayItem(@rr,"Properties","ListName") | |
AddObjectArrayItem(@rr,"Properties","ID") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Deal Badge --> | |
<!-- AMPscript.com --> | |
<!-- https://ampscript.com/company-logo-in-gmail-using-promotions-tab/ --> | |
<div itemscope="" itemtype="http://schema.org/DiscountOffer"> | |
<meta itemprop="description" content="AMPscript.com"> | |
<meta itemprop="discountCode" content="AMPSCRIPT"> | |
<meta itemprop="availabilityStarts" content="2020-03-10T00:00:00Z"> | |
<meta itemprop="availabilityEnds" content="2020-04-05T00:00:00Z"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Custom Logo --> | |
<!-- AMPscript.com --> | |
<!-- https://ampscript.com/company-logo-in-gmail-using-promotions-tab/ --> | |
<div itemscope itemtype="http://schema.org/Organization"> | |
<meta itemprop="name" content="AMPscript" /> | |
<meta itemprop="logo" content="https://image.s7.sfmc-content.com/lib/fe9013737562047473/m/1/ampscript.png" /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
AMPscript.com | |
https://ampscript.com/parsing-json-with-ampscript/ | |
*/ | |
%%[ set @JSON = '{"name": AMPscript.com","email": "AMPscript@ampscript.com"}' ]%% | |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
AMPscript.com | |
https://ampscript.com/company-logo-in-gmail-using-promotions-tab/ | |
*/ | |
%%[ | |
SET @JSONStart = Concat('<', 'script type="', 'application/ld+json"','>') | |
SET @JSONEnd = Concat('<','/','script','>') | |
]%% | |
%%=TreatAsContent(@JSONStart)=%% | |
[{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
AMPscript.com | |
https://ampscript.com/how-to-run-automations-more-frequently-using-ssjs/ | |
*/ | |
<script runat="server"> | |
Platform.Load("Core","1.1.1"); | |
var automationCustomerKey = "[Customer Key Goes Here]" | |
var rr = Platform.Function.CreateObject("RetrieveRequest"); | |
Platform.Function.SetObjectProperty(rr, "ObjectType", "Automation"); | |
Platform.Function.AddObjectArrayItem(rr, "Properties", "ProgramID"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
<s:Header> | |
<fueloauth xmlns="http://exacttarget.com">[access_token_goes_here]</fueloauth> | |
</s:Header> | |
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI"> | |
<RetrieveRequest> | |
<ObjectType>DataExtensionField</ObjectType> | |
<Properties>Name</Properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
<env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope"> | |
<wsa:Action>RetrieveResponse</wsa:Action> | |
<wsa:MessageID>urn:uuid:5f27fe84-7193-1eb4-868c-1b267866a0ez</wsa:MessageID> | |
<wsa:RelatesTo>urn:uuid:1e5fa6d1-eee5-1f72-a620-8c600c75d93s</wsa:RelatesTo> | |
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> | |
<wsse:Security> | |
<wsu:Timestamp wsu:Id="Timestamp-c669d2bf-22a6-4e7f-b570-4b8bdc88361f"> | |
<wsu:Created>2023-06-14T23:11:57Z</wsu:Created> | |
<wsu:Expires>2023-06-14T23:16:57Z</wsu:Expires> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
<s:Header> | |
<fueloauth xmlns="http://exacttarget.com">[access_token_here]</fueloauth> | |
</s:Header> | |
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI"> | |
<RetrieveRequest> | |
<ObjectType>DataExtensionField</ObjectType> | |
<Properties>Name</Properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
<s:Header> | |
<fueloauth xmlns="http://exacttarget.com">[access_token_goes_here]</fueloauth> | |
<a:Action s:mustUnderstand="1">Delete</a:Action> | |
<a:MessageID>urn:uuid:d5c8c2ee-384e-4492-af18-b01e0d438b62</a:MessageID> | |
<a:ReplyTo> | |
<a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address> | |
</a:ReplyTo> | |
<a:To s:mustUnderstand="1">https://[unique_key_for_installed_package].soap.marketingcloudapis.com/Service.asmx</a:To> |