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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard