Skip to main content
Answered

About App MetadataData

  • February 19, 2025
  • 4 replies
  • 43 views

Forum|alt.badge.img

Hi there, does AppMetadata store data per board or is the data shared across different boards?

I ‘m not able to understand the documentation as it says that it is stored per board, but the data persist when making a copy of a board.

Best answer by Horea Porutiu

Hey ​@kondo 

Thank you for asking! I just tested this out by taking the following steps:

1) Create an app
2) set some app metadata:
 

await miro.board.setAppData('hello', 'world')

const test = await miro.board.getAppData('hello');
console.log(test)


3) Open the board, open the app, and then open the JS Developer Console, in there I saw “world” printed out. 

4) I then copied the board via copy board REST API method
 

5) Then I modified the code to only call getAppData.

6) Then I opened the board which was a copy of the original board, opened the app, and then the JS Developer Console, and saw that the AppData was not there. The docs are now updated to show that when duplicating a board, when using setAppData, the data will not persist.

Sorry for the confusion here. 

 

View original
Was it helpful?

4 replies

Forum|alt.badge.img
  • Active Contributor
  • 20 replies
  • February 19, 2025
kondo wrote:

Hi there, does AppMetadata store data per board or is the data shared across different boards?

I ‘m not able to understand the documentation as it says that it is stored per board, but the data persist when making a copy of a 

I am expect that meta is for every board


Forum|alt.badge.img
  • Active Contributor
  • 20 replies
  • February 19, 2025

Hello

I am expected that meta data is at all board, because it,at github security. 


Horea Porutiu
Mironeer
Forum|alt.badge.img+1
  • Mironeer
  • 172 replies
  • Answer
  • February 19, 2025

Hey ​@kondo 

Thank you for asking! I just tested this out by taking the following steps:

1) Create an app
2) set some app metadata:
 

await miro.board.setAppData('hello', 'world')

const test = await miro.board.getAppData('hello');
console.log(test)


3) Open the board, open the app, and then open the JS Developer Console, in there I saw “world” printed out. 

4) I then copied the board via copy board REST API method
 

5) Then I modified the code to only call getAppData.

6) Then I opened the board which was a copy of the original board, opened the app, and then the JS Developer Console, and saw that the AppData was not there. The docs are now updated to show that when duplicating a board, when using setAppData, the data will not persist.

Sorry for the confusion here. 

 


Forum|alt.badge.img
  • Active Contributor
  • 20 replies
  • February 19, 2025

Can I using that at phone?