Skip to main content

#MCDeveloper토론 중인 항목 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 guys!

 

Do you know whether it's possible to use SOAP for connecting to Synchronized Data Extensions?

댓글 4개
0/9000

I have a question about GroupConnect. We followed the documentation and tested in Postman. It seems like we were able to create a package,

https://{{et_subdomain}}.rest.marketingcloudapis.com/ott/v1/registration

 

then retrieve it,

https://{{et_subdomain}}.rest.marketingcloudapis.com/ott/v1/registration/messenger/2396708113545

 

then send it.

https://{{et_subdomain}}.rest.marketingcloudapis.com/ott/v1/send

 

According to what is showing in the documentation, we did everything right based on the responses we got back. But we never received a message in Facebook chat. Maybe we are misunderstanding what this is supposed to do, but are you able to elaborate on this at all? #Mcdeveloper 

댓글 6개
  1. 2021년 1월 31일 오후 11:45
    I'm having the exact same issue and Support is not being helpful at all! Has anyone seen MC working with FB?
0/9000

Hi All,

 

I have a question with Groupconnect with Facebook messenger. I have followed all the documentation and tested in postman.

 

The response for registering the page and send a Facebook message is success. But there is no message in facebook messenger.

 

Is there something else needs to be done?

 

Please help.

 

#Mcdeveloper

0/9000

Hi All,

 

I’m doing some Journey test with Einstein STO. I’m seeing there is more than a half data is pending personalized Send Time and email is sent on first Einstein slot. There is any chance to do an Split for contact with assigned send time?

 

Thanks in advance!

#MCDeveloper  #Einstein Send Time Optimization 

댓글 1개
0/9000

We use Cvent connector to get the registrant data from Cvent into Salesforce. However, we do not get the abandoned registrant data from Cvent in to Salesforce. We want to campaign to the abandoned registrants from Marketing Cloud. What is the best way to get the abandoned registrant data from Cvent to either Salesforce or Marketing Cloud?

0/9000

Is it possible to access Handlebars/GTL templates stored on my SFMC FTP server?

#MCAskAnExpert 

댓글 2개
0/9000

Hello All,

 

I am trying do a HMACSHA256 encryption using CryptoJS library to get JWT tokens in SFMC SSJS.I have tried unminifying the library & converted to Native JS but couldn't get it work on SFMC..Any help is highly appreciated.

 

Note:

--HTML File working fine 

--Tried the minifed version SFMC but no luck

--Tried Unminified version with latest CryptoJS library

--Finally tried the unminifed version with Native Javascript ( no ECMA Script) but no luck

#MCDeveloper 

#MCAskAnExpert 

 

Thanks,

Ponnu

댓글 1개
  1. 2020년 3월 9일 오후 2:16
    Curious if the MC experts have any guidance to create JWT in SFMC using SSJS or AMPscript libraries -- or if we have to explore external solutions (API request or custom app)? Thank you!
0/9000
1076323155 님이 * Marketing Cloud Engagement *에 글을 올렸습니다

Looking to get some ideas around using a dynamic content block using lookup AMPscript (or other recommended method). 

 

We have some longer lifespan journeys, and using journey data (which remains static after entry), doesn't work for some of our dynamic content or personalization strings. For example, if we have a cross sell product recommendation, and they purchase that product within the journey, I want to look at the updated cross sell recommendation for the next email, not what was at the start of the journey. 

 

We have done lookup AMPscript for personalization strings but not dynamic content blocks. We would like to get to a point to have re-usable content blocks that a content creator can pull in without editing the code. But for now, just looking to get recommendations around the best method to do this. 

 

#MCDeveloper 

#MCAskAnExpert 

댓글 1개
  1. 2020년 3월 9일 오후 2:12
    Assuming your cross sell recommendations are stored in a data extension that is constantly updated and includes a reference to the customer, I would set up a reference data extension set up that would include information about the cross sell products (name/image/URL, etc) to display and a key to reference them, like a SKU number. In the dynamic block, I would create a lookup to the cross sell recommendation DE using lookuprows() based on the subscriber reference between the 2 tables. Then take the SKUs you get from that lookup and populate your dynamic content block using lookups to the product info table based on SKU. Of course build in error handling in your AmpScript to hide the block if no results are found in any of the lookups.
0/9000

Thank you for joining Developer Office Hours!  Please post your questions here, and use hashtag #MCDeveloper.

댓글 4개
  1. 2020년 3월 9일 오전 3:53
    Hi @Katie Wheeler - Where I can find the recorded session of the recent event. Please help us share the link. Thanks!!
0/9000