Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Force message format for custom delivery / channel

Avatar

Avatar
Validate 1
Level 1
roro_coeur
Level 1

Likes

2 likes

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
roro_coeur
Level 1

Likes

2 likes

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
roro_coeur
Level 1

07-05-2021

Hello,

 

I am building a custom connector to send mobile push through a partner API.

I have created a specific push channel and a publishing model with form/schema/JS template for content contribution.

By default, the delivery form have 2 preview tabs : an HTML Preview and Text Preview tab.

I am able to hide those tabs for deliveries of type Push, and create a new one that would be called "Preview" only.

And I will only use the delivery.content.source.text field to store push notification contents.

 

My question is: how do you force the content of a message to be processed and sent alaways as Text format for a specific delvery type? 

Currently, it is retrieving and expecting content from the HTML field (as my test profiel expects HTML I guess), so if  I only create a JS Template for the text version and not a HTML one, I am getting the following error when running a campaign: The output message for recipient '' is empty

 

Any clue?

 

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

960 likes

Total Posts

1,090 posts

Correct Reply

509 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

960 likes

Total Posts

1,090 posts

Correct Reply

509 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

09-05-2021

Hi,

 

Are you using processDeliveryPart()?

Should be just a matter of reading deliveryPart.message.*.text field in your connector js instead of the html field.

 

Thanks,

-Jon

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1000
Employee
Sukrity_Wadhwa
Employee

Likes

143 likes

Total Posts

866 posts

Correct Reply

35 solutions
Top badges earned
Validate 1000
Validate 500
Validate 250
Validate 100
Validate 25
View profile

Avatar
Validate 1000
Employee
Sukrity_Wadhwa
Employee

Likes

143 likes

Total Posts

866 posts

Correct Reply

35 solutions
Top badges earned
Validate 1000
Validate 500
Validate 250
Validate 100
Validate 25
View profile
Sukrity_Wadhwa
Employee

17-05-2021

Hi @roro_coeur,

Was the given solution helpful to resolve your query or do you still need more help here? Do let us know.

Thanks!