Copy Annotations across scenario

Rev
New Contributor

Hi,

While we copy from Scenario S#Bud1 to S#Bud2, Annotations are not getting copied.

Understand from related posts, it can be achieved using api.Data.SetDataAttachmentText(). Any tried approach using this syntax.

Any leads would be appreciated.

Thanks

1 ACCEPTED SOLUTION

Henning
Valued Contributor

As a short summary to do this:

1. Create a data table (in memory) using SQL as a source, pulling the existing comments from the table where annotations are stored (make sure to filter by time, scenario and whatever else you can narrow it down)

2. Loop through the filtered records in your data table, and write the annotations back using the SetDataAttachmentText() function for each row in the data table, using the POV from the looped through row adjusted by scenario

 

The code you need is briefly described in this post, which you are probably already aware of: https://community.onestreamsoftware.com/t5/Rules/Query-on-annotation-data-copy/m-p/7741 

 

Make sure to test this on a low scale first and see if your code works. If you have no experience with code such as this, your implementation partner or the OneStream Remote Consulting team can likely help you (billable) to set this up. To get in touch with the OS Remote Consulting team, just open a ticket with support@onestream.com 

View solution in original post

2 REPLIES 2

Henning
Valued Contributor

Hi,

Please give this post a Kudo so that this might get addressed in a future release 🙂

https://community.onestreamsoftware.com/t5/Financial-Close-Consolidations/Copy-Annotations-Function/...

 

Henning
Valued Contributor

As a short summary to do this:

1. Create a data table (in memory) using SQL as a source, pulling the existing comments from the table where annotations are stored (make sure to filter by time, scenario and whatever else you can narrow it down)

2. Loop through the filtered records in your data table, and write the annotations back using the SetDataAttachmentText() function for each row in the data table, using the POV from the looped through row adjusted by scenario

 

The code you need is briefly described in this post, which you are probably already aware of: https://community.onestreamsoftware.com/t5/Rules/Query-on-annotation-data-copy/m-p/7741 

 

Make sure to test this on a low scale first and see if your code works. If you have no experience with code such as this, your implementation partner or the OneStream Remote Consulting team can likely help you (billable) to set this up. To get in touch with the OS Remote Consulting team, just open a ticket with support@onestream.com