Skip to main content

Notifications

Microsoft Dynamics RMS forum

problem R/W session variable

Posted on by 30

Hi all,

I am new to the rms. I would like to write to and read from session variable.

dim a as string="123"

mySession.Variable(0,a)    'to write to variable

dim b as string = mySession.Variable(0)   'to read from variable

but somehow the write to variable can not work. And i search around google, I saw some example:

mySession.Variable(0)=a  'to write

when i tried to read, it return me NULL

Thanks in advance

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: problem R/W session variable

    do you have the mysession variable initialized prior to reading and writing.  

    I would double check the customization guide first to see the example

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,782 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,067 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans