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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Build Tool Task boolea...
Power Apps
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..

I have the same question (0)
  • Asllan_Makaj Profile Picture
    5 on at

    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')

     

  • smadep Profile Picture
    96 on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard