Power Apps Exchange

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

Unable to pass table type as parameter inside Canvas app

  • 1.  Unable to pass table type as parameter inside Canvas app

    Posted Feb 24, 2022 03:55 PM
    I have this method called in a custom connector which takes a parameter "project name" which is a string and a parameter in body "assetIds" which is of array kind [12322,22332]. and I am able to validate and call successfully when testing it in the connector. I tried to call inside the app using this using this formulae.
    customconnectorname.FilterEvents("myprojectname",{assetIds:[
    5884566067180248,
    4000106819215821
    ]})
    

    and I get error as datasource expects string and you are passing Table. so I changed and passed something like this

    customconnectorname.FilterEvents("myprojectname",{assetIds:5884566067180248})
    

    and now I get error data source Expected Table . I would like to know how should I pass this ? what is the correct way of passing the value. In connector this is how I pass and it works:

    enter image description here

    Method declaration

    enter image description here

    PATH PARAMETERS
    project
    required
    string
    
    
    QUERY PARAMETERS
    assetIds    
    string <jsonArray(int64)> (JsonArrayInt64)
    Example: assetIds=[363848954441724, 793045462540095, 1261042166839739]
    Asset IDs of equipment that this event relates to. Format is list of IDs serialized as JSON array(int64). Takes [ 1 .. 100 ] of unique items.
    

    Here is the swagger definition from PowerApps. the assetsId part is :

    assetIds:
                    type: array
                    items: {type: integer, format: int32}
                    description: assetIds
    

    enter image description here



    ------------------------------
    Ankit Kumar
    IT Developer
    Oslo
    4746225022
    ------------------------------