Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

initialize variable and get value "Null" from dataverse

Posted on by 3,962

Hi,

 

Is there anyway that assign a default value when initialize variable but get "Null" from dataverse ?

 

Right now I use condition. I wonder is there any better expression I can use just when initialize variable.

 

George

  • RE: initialize variable and get value "Null" from dataverse
    I found if value is string, I can use expression,
     
    if(empty(A),B,A)
     
    The meaning is: 
    empty(A) >> Get A and see if null
    if null, return B
    if not, return A
     
    If value is integer,
    if(equals(A,'null'),B,A)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans