web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

How to declare a global variable which i can always check in console.

(2) ShareShare
ReportReport
Posted on by 109
I have an requirement where i need to pass certain data to adobe data layer, i have written a script which loads the adobe script and pass the data to window.adobedatalayer.
I am able to see the result in array in when i type adobe datalayer in console. but when i dont debug, i dont see adobedatalyer in console, It says its undefined.
Any suggestion on this will be very helpful.
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    239,451 Most Valuable Professional on at
    Is this related to Microsoft Dynamics 365? If so, which D365 product are you interested in?
  • Harshitha K Profile Picture
    109 on at
    Hi Martin,
     
    Yes this is in Microsoft Dynamics 365 sales module, i need to to pass some data from account table to adobedatalayer using javascript, i have initialised an object in which i will be pushing the data, i am able to pass it, but in console i cant see the object  after the script excecution, as i mentioned i i place the breakpoint in the script then i can see the object and data, without breakpoint it doesnt show any data in console
  • Harshitha K Profile Picture
    109 on at
    Is there any way we can always have the object in console dev tools, is it possible to declare globally in dynamics 365 .
    Ex: 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 135

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 86 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 58 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans