Power Apps Exchange

Please login or click SIGN UP FOR FREE to create your PowerAppsUG account to join this user group.
 View Only

Error getting fields after scanning QR code

  • 1.  Error getting fields after scanning QR code

    Posted Feb 08, 2023 01:42 PM
    have a small form in which I am scanning the data of a Sharepoint list, but after scanning it does not show me the information in the corresponding fields.

    The button with which the camera is activated to scan the QR code has the following code in the OnScan property.

    Refresh('List Name');;
    Set(varScannedItem;LookUp('List Name';Title=BarcodeScanner1.Value));;

    If(IsBlank(varScannedItem);
    Notify("Location no found";NotificationType.Error);
    ResetForm(SharePointForm1);;
    EditForm(SharePointForm1);;
    );;
    In addition to this button I have a form called SharePointForm1 where I have the DataCard of the Title column of my sharepoint list and within this DataCard I have a DataCardValue where I have the following statement in the Default property:
    varScannedItem.Title
    The structure of the form is as follows:
    sebastianslz_0-1675872442038.png

     

    What I want to achieve is that when I scan the information in the list I load it in the text field I have in my form.


    ------------------------------
    John Doe
    ------------------------------