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 / Patching Value of the ...
Power Apps
Answered

Patching Value of the Colour of the Fill of an Object into Column in SharePoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

Please help me with the below issue:

I am trying to patch the colour of the fill of an object into a column in SharePoint. But getting error : Expecting text values instead. 

 

 

Below is the formula that I used:


Patch(
Table_1,
{Title: "1",
Date: Today(),
Category: "Status 1",
value: Status1.Fill}
);

 

Thanks in Advance

Xiu Min

Categories:
  • eka24 Profile Picture
    20,925 on at

    Some clarification:

    Is Value the name of your column?

    Do you want to save the colour name example "Red" as filled in the status?

    Kindly show a screen shot of Status on your screen. is it a label

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

    Please Subscribe to my Youtube Channel

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    Yes, Value is the name of the column.

    Yes, I want to save the colour name of the fill of the status.

    The status is a circle as shown in the screenshot below:

    XiuMin_0-1651219585820.png

     

     

     

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    See below screenshot:

    vjefferni_0-1651567023496.png

    Fill property only accepts Color type data, you will need to convert the value to Text to save to your list:

    vjefferni_1-1651567080794.png

    So I assume you have 3 kinds of colors for the circle: Red, Green and Yellow, you can use a switch function the detect the color of the icon and get corresponding texts:

     

    Switch(
     Circle1.Fill,
     Red,
     "Red",
     Green,
     "Green",
     Yellow,
     "Yellow",
     ""
    )

     

     

    Append this to your Patch function:

     

    Patch(
    Table_1,
    {Title: "1",
    Date: Today(),
    Category: "Status 1",
    value: Switch(
     Status1.Fill,
     Red,
     "Red",
     Green,
     "Green",
     Yellow,
     "Yellow",
     ""
    )}
    );

     

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard