Skip to main content

#MCExperts토론 중인 항목 0개

Hi All,

 

I've been trying to use WSProxy to dynamically update publication lists in multiple child BU's using an SSJS activity in an Automation.

I've noticed very strange behaviour where the script executes successfully and I'm getting a successful response from the WSProxy API, however the subscriber isn't getting updated in the corresponding Publication List.

 

In my real automation, I populate a DE with the details of the subscribers who need to be resubscribed and use the DE data as my source for the script activity

 

Sample code below:

 

<script runat="server">

    Platform.Load("core", "1.1");

    var api = new Script.Util.WSProxy();

    var buId = nnnnnn;

    var listId = llllll;

        api.setClientId({"ID": buId});

        var options = { 

            SaveOptions: [{

              PropertyName: "*",

              SaveAction: "UpdateAdd"

            }]

        };

        try {

            var sub = {

                SubscriberKey: "SubKey1",

                EmailAddress: "xxx@xxx.com.au",

                Lists: [{

                    ID: listId,

                    Status: "Active"

                }]

            };

            var resp = api.createItem("Subscriber", sub, options);

              Write(Stringify(resp));

        } catch(e) {

          Write(Stringify(e));

        }

          api.resetClientIds();

</script>

 

Has anyone else noticed this behaviour in their environment?

I will be raising a case with SF as well, but hopefully someone here has a solution/workaround.

 

#MCExperts #MCDeveloper  #wsproxy, #ssjs#SSJS Script , #Marketing Cloud Publication Lists 

@Andrew Ormerod @Ned Atanasovski  

댓글 7개
  1. 2022년 8월 24일 오후 3:20

    @Grace Call 

    To make the mid dynamic here is the code :

    Platform.Recipient.GetAttributeValue('memberid'); //SSJS

     

    What you could have tried - copy the SSJS into a code snippet in the shared folder, call the code snippet in the child BU cloud page or Automation SSSJ script activity.

     

    <script runat="server">  var ampscriptCode = Platform.Function.ContentBlockByID("12345"); </script>

0/9000

Hi

Is there anyway to retrieve a SQL query from marketing cloud. I mistakenly did over write the query I really need to get back the old query.

Thanks

#MCExperts #SQL Query#Marketing Cloud 

댓글 3개
0/9000

Hi

I have couple of email addresses that I have on my send list but when I try deploying to those emails it doesn't seem to get added to my data extension. I looked up these contacts in my All Subscribers list & seen that they have the reason "Hard Bounce" tagged to them. We have asked the client to whitelist our domain which they have but I am still not able to send them emails.

Is there something I am missing here?

Thanks

##AskMCExpert #MCExperts #Bounce Data 

댓글 1개
0/9000

Hi

Is there a way to track # sends/open/clicks for a particular domain. I am trying to understand if the client IT teams has blocked email send from our company's domain or if its just a few contacts that are not getting the emails. I know these can be manually checked but I have a huge list & prefer using the domain to check this

#Domain #MCExperts #reporting 

0/9000

Subject : MOBILE PUSH MARKETING CLOUD IOS INTEGRATION - GEOFENCE MESSAGING

 

Hi Everyone,

 

1) Is there any way to send silent push notification for marketing cloud i.e, content-available as 1?

2) Has anyone tried to custom handle the geofence push notifications? The notification response I get  when opening the push notification is {"fenceIdentifier":"","_sid":"SFMC","_m":""}. Its missing the alert body. 

 

#MCExperts #Mcdevelopers #MCAskAnExpert #GeoFence #Marketing Cloud SDK 

0/9000
Omni Admin 님이 * Marketing Cloud Engagement *에 글을 올렸습니다

EDIT: This is in regard to emails, not content pages

 

Hello,

In the content module blocks is there a way to access global js that can be used across multiple custom content blocks via ssjs? Ie. content block A renders at time of send and writes some data to be stored in js, so that content block B can also access that data at the time of render. If so, is there any guarantee of concurrency in the order that the content blocks execute their ssjs, or do they load asynchronously at time of render?

Thanks

#MCExperts

댓글 4개
0/9000

Hi #MCExperts,

 

I am tasked to create an operational journey that pushes people through our healthcare funnel using next best action tools, specifically in preventative wellness. Is there anyone out there that is willing to share some learning on how you have accomplished the same or similar journey?

 

Thank you, 

Jim

0/9000

When will the Email Studio Admin section functionality be made available to support generating a token (per https://help.salesforce.com/articleView?id=mc_es_domain_registration.htm&type=5) to allow Domain Registration?

#MCExperts 

댓글 3개
0/9000
Hadas Schribman (Maytronics) 님이 #MobilePush SDK에 글을 올렸습니다

Hi,

 

In Marketing Cloud SDK (IoS), it seems that when I'm sending Push+Inbox under the same message it add +2 to the badge count and not 1.

Does someone know if somehow we can count it as 1 message and not 2.

 

Thanks.

 

#MobilePush SDK #Marketing Cloud #MCExperts 

0/9000

Journey Builder Validation Errors #MCExperts

 

A journey is outputting the below Validation error to all 5 emails in the Journey:

TriggeredSend Add/Update failure. An entry with the Name value already exists. TriggeredSendID: 00000000-0000-0000-0000-000000000000 Triggered Send Name: Email #1

 

Support said this was due to the 5 emails having too similar in name, Email #1, Email #1.1, Email #2, Email #2.1, etc...

 

I've renamed them and am trying to add them back in. I'm getting an error when trying to save the email activity and it won't let me select the "Done" button.

 

I've Previewed the emails against a DE and they are not erroring. Preview works. Here's the error in Journey Builder in the Email Activity Summary:

 

Review and fix these validation issues in your email.

  • HTML_Body - Functions_Custom_Objects Error 1: Script SET Statement Invalid<br>An error occurred when attempting to resolve a script expression. See inner exception for detail. Script Expression: AKA MemberID: 100017703 JobID: 0 An unrecognized expression appears in a script block. Script Expression: AKA MemberID: 100017703 JobID: 0 <br>Invalid Content: <br>set @AKA = AKA
  • TEXT_Body - Functions_Custom_Objects Error 1: Script SET Statement Invalid<br>An error occurred when attempting to resolve a script expression. See inner exception for detail. Script Expression: AKA MemberID: 100017703 JobID: 0 An unrecognized expression appears in a script block. Script Expression: AKA MemberID: 100017703 JobID: 0 <br>Invalid Content: <br>set @AKA = AKA

 

Ampscript in Email:

%%[ var @FirstName,@AKA set @FirstName = FirstName set @AKA = AKA ]%%

 

%%[if not empty(@AKA) then]%%%%=v(Propercase(@AKA))=%%%%[else]%%%%=v(Propercase(@FirstName))=%%%%[endif]%%,

 

I do have the Ampscript in a HTML block. Any thoughts?

댓글 3개
  1. 2019년 3월 18일 오후 3:32

    Hi Justin!

    Would you please let me know if the data extension that you are testing against is the entry data extension? This can cause validation errors if it is not the correct DE.

    Thank you!

    #MCAskAnExpert
0/9000