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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Check with PowerFX whether file is added to form

(0) ShareShare
ReportReport
Posted on by 54

Hello everyone,

I try to disable a custom "send" button with PowerFX when a document (field with File Type) is not added to the form. I tried various options within the Visibility field:

  • !IsBlankOrError(Self.Selected.Item.FileAttachments)
  • !IsBlankOrError(Self.Selected.Item.Document)
  • !IsBlankOrError(Self.Selected.Item.Document.FileName)
  • !IsBlankOrError(Self.Selected.Item.Attachments)

But it doesn't seem to work.

Does anyone has suggestions?

Kind regards,
Elowy.

I have the same question (0)
  • JMG74 Profile Picture
    2 on at
    Check with PowerFX whether file is added to form
    Hi Elowy,
     
    Did you get any solution or workaround on your side ? because we have the same concern and we didn't found any clue.
     
    Thanks in advance.
    Kind regards,
     
    Jean-Marc.
  • Elowy GrootCRM Profile Picture
    54 on at
    Check with PowerFX whether file is added to form
    Unfortunately not. I ended up with making the document field mandatory. And to prevent the button from being visible on a "new" form, I added the following to the visible condition of the button: "And Self.Selected.State = FormMode.Edit)" .
     
    Maybe that helps.
     
    Kind regards,
    Elowy.
  • Suggested answer
    Inogic Profile Picture
    653 on at
    Check with PowerFX whether file is added to form
    Hi @Slowytech,

    We also faced same issue with Power fx formula.

    But if you still want this functionality, then instead of Power Fx formula, you can go for solution using Ribbon workbench to disable the button if the document is not present.

    Below are the steps –
     
    1. Create one solution and add the entity in which you want to add the ‘Send’ button.
    Note- Don’t add anything else in that solution. It should only contain the entity in which you want to add the button.
    1. Open the Ribbon workbench and open that solution.
    2. Add the button in the main form and provide the name to that button.
    4. As you want to display the button if the file is present then add the ‘Enable Rule’ to that button.
    5. Provide the field logical name and then publish the solution.



    Result –

      When the file is not present then the button is hidden.



    When the file is present then the button is visible.



    Thanks!

    Inogic Professional Services
    An expert technical extension for your techno-functional business needs
    Power Platform/Dynamics 365 CRM
    Drop an email at crm@inogic.com
    Service:  https://www.inogic.com/services/  
    Power Platform/Dynamics 365 CRM Tips and Tricks:  https://www.inogic.com/blog/

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 120

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 120 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 56

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans