Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Build Tool Task boolean input doesn't work with calculated value

(0) ShareShare
ReportReport
Posted on by 96

Solution Import Task doesn't accept a calculated value for UseDeploymentSettingsFile switch:

 

UseDeploymentSettingsFile: '$(UseDeploymentSettings)'
DeploymentSettingsFile: '$(DeploymentSettingsFilePath)'


I can see in logs, that the settings file is not used in the arguments of pac-call

if I set it to true (hardcoded), it's working.

 

Anybody else experiencing that?

What would be the right way to use a calculated value there? Tried with/without quotes, eq-comparison, etc..

  • smadep Profile Picture
    96 on at
    Re: Build Tool Task boolean input doesn't work with calculated value

    Thanks @Asllan_Makaj 🙂 That's what I came up with (temporarily), too. Didn't post it here, because I don't consider this a "solution" to my problem. That's a nasty code-duplicating workaround.

     

    I have a second input-parameter in the task I would want to control dynamically with a variable/parameter ... managed vs unmanaged .. I would need 4 of these blocks then?! mpfff.

  • Asllan_Makaj Profile Picture
    5 on at
    Re: Build Tool Task boolean input doesn't work with calculated value

    Hi @smadep , I think I have the solution of your problem. I tried in my environment and it worked.

    - task: PowerPlatformImportSolution@2
     inputs:
     authenticationType: 'PowerPlatformSPN'
     PowerPlatformSPN: 'Second-connection'
     Environment: '$(urlTest)'
     SolutionInputFile: 'Testing.zip'
     UseDeploymentSettingsFile: true
     DeploymentSettingsFile: '$(DeploymentSettingsFilePath)'
     AsyncOperation: true
     MaxAsyncWaitTime: '60'
     condition: eq(variables['UseDeploymentSettings'],'true')
     
    - task: PowerPlatformImportSolution@2
     inputs:
     authenticationType: 'PowerPlatformSPN'
     PowerPlatformSPN: 'Second-connection'
     Environment: '$(urlTest)'
     SolutionInputFile: 'Testing.zip'
     AsyncOperation: true
     MaxAsyncWaitTime: '60'
     condition: ne(variables['UseDeploymentSettings'],'true')

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 72 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard