1

This question is a follow up of How do I get the display name of a hyperlink that comes from SharePoint in Power Apps?

Here is the code I used at the On Start of the App:


    Set(AllFavorites; GruposdoOffice365.HttpRequest("https://graph.microsoft.com/v1.0/sites/X/Lists/Y/items?expand=fields"; "GET"; ""));;

    ClearCollect(
        colAllFavorites;
        ForAll(
            Table(AllFavorites.value);
            {
                Title: Text(Value.fields.Title);
                Url1: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref.Url);
                Description1: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref.Description);
                Url2: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref0.Url);
                Description2: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref0.Description);
                Url3: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref1.Url);
                Description3: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref1.Description);
                Url4: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref2.Url);
                Description4: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref2.Description);
                Url5: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref3.Url);
                Description5: Text(Value.fields.Legisla_x00e7__x00e3_o_x0020_Ref3.Description)
            }
        )
    );;

I managed to get through a HTTP request on start of the app the descriptions of hyperlink columns to show on a text box. Now I need to save the changes made on the text box at the same time I submit the form. How do I submit a SharePoint form, at the same time I want to upsert the description of a hyperlink column of it that I wrote inside a text box?

I color coded the URLs to their respective links. The highlighted button is the one that submits the data:

enter image description here

Ganesh Sanap
  • 1,386
  • 1
  • 8
  • 18
  • Use Send an HTTP request action in Power automate flow to update the description of hyperlink: https://sharepoint.stackexchange.com/questions/88540/how-do-i-update-a-hyperlink-field-using-the-rest-api – Ganesh Sanap Aug 25 '23 at 05:55

1 Answers1

1

You can call the Power automate flow from Power Apps to update the description of hyperlink columns.

Inside Power automate flow, you can use the "Send an HTTP request to SharePoint" action to update the description of hyperlink with the help of SharePoint REST APIs.

enter image description here

Source: How to: Update SharePoint hyperlink field the proper way with alternative text — Power Automate

Related thread for syntax reference: How do I update a Hyperlink field using the REST API?

Ganesh Sanap
  • 1,386
  • 1
  • 8
  • 18