cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add a trigger in SAC story to publish data?

rijin_baby
Participant
0 Kudos

I have a client requirement to have a trigger button to publish data.

For every sac story there is a publish data option in the top pannel

Is there any way to add a trigger button in the story to do the "Publish Data"

Is it possible to have some script inside "Data Action Trigger -> Advanced Formulas Step" that does the Publish data job?

Any suggestions

Accepted Solutions (1)

Accepted Solutions (1)

pedrosan
Advisor
Advisor

Hi Rijin,

You can set the flag on the data action to publish the target version once it finishes running.

If what you need is a dummy planning trigger that will not calculate anything but only publish data I guess you could try building a data action with no calculation but the target version selection only, set the flag to publish after it runs and test if it actually publishes the version however it looks like an unnecessary effort considering there is a standard button which addresses exactly and easily the publishing.

Another option involving more effort will be using analytics designer and the submitData planning API but that will increase your stories complexity and the support efforts after the implementation is done as javascript knowledge will be mandatory so I strongly suggest to avoid this option unless it is a MUST(should not be as the standard already addresses the data publishing from a story).

Use the Planning APIs setUserInput and submitData

Try to keep it simple!

Hope it helps!

Pedro

rijin_baby
Participant

Thank You pedrosan

Answers (2)

Answers (2)

N1kh1l
Active Contributor

rijin_baby

Use a Multi Action with Version Management Step as shown below.

Use a trigger to run this in story.

Please upvote/accept if this helps

Nikhil

rijin_baby
Participant
0 Kudos

Thank you Nikhil

guvvalasairam436
Explorer
0 Kudos

Hi nikhil_1486

I am trying to publish the data using the data action, i have selected the publish the data check box in the data action widget when i run the data action data is getting copied but its not publishing throwing an error, If i do that manually there is some data loss because of validation rules ,Need to schedule this data action because of this publishing issue we are doing it manually

N1kh1l
Active Contributor
0 Kudos

sairam guvvala

Try creating a fresh version and run the data action on that and see if that gets published. It can be that the version member the data action is running on might be corrupt.

Nikhil