JSON Connector that allows for entire dynamically constructed url?
I am trying to use the JSON No Code connector to dynamically pull data from another website. I've used this for other purposes successfully, but am running into an issue with the way the Domo connector inserts a "/" or "?=" in the url under the dynamic url and dynamic parameters settings. If I use the static url option, it works correctly but I'm unable to piece together the url using the dynamic settings.
If I run this single url, it works: https://website.com/financemodel/data/extract/gldata?Scenario=Actual&FiscalYear=2024&ApplyCreditDebit=True&$filter=FiscalMonth eq 12
If I use the dynamic settings where the url is this: https://website.com/financemodel/data/extract/gldata?
and then insert the dynamic values or even insert the end of the url using a Dataflow, it doesn't work due to the url being invalid. I suspect it's because the FiscalMonth can only be filtered using OData "$filter=FiscalMonth eq" instead of just "?FiscalMonth=". I've tried different combinations of url and dynamic pieces of the url to tack on but can't get it to work.
Is there a way to have a JSON connector pull the entire url from a dataset? I can easily build the full url in ETL instead of trying to splice it together using the JSON url settings.
The whole reason for this is that the source data does not contain a date field to use as a parameter. There are only fields for the Year and Month
Answers
-
Can you try making your parameter name "ApplyCreditDebit" and your value "True&$filter=FiscalMonth eq 12" and see if that works? Also, you may need to turn off encoded for your values. If you click the blue Encoding link and uncheck values that will prevent the connector from trying to encode your manual input
0 -
You can't directly reference a dataset field in the textbox for "Single URL," so you probably need to approach it a bit differently using Dynamic URL with a dataset.
In your ETL or DataFlow, concatenate the full URL (including all parameters like Scenario, FiscalYear, $filter=FiscalMonth, etc.) into a single column. For example, the dataset would have a column like:
https://website.com/financemodel/data/extract/gldata?Scenario=Actual&FiscalYear=2024&ApplyCreditDebit=True&$filter=FiscalMonth eq 12
Configure the JSON Connector - instead of using Single URL, select Dynamic URL. In the Base URL field, leave the base part of the URL (e.g., https://website.com/financemodel/data/extract/gldata?).
In the Dynamic Parameters section, use a single dynamic field that references the dataset column with the complete URL string (starting with Scenario=...). This way, it will pull the entire query string part dynamically from your dataset.** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
No matter how I divide up the URL into the base part and the dynamic part from the dataset, it seems to insert an additional "/" into the resulting url. Even if I structure it so the slash fall where one of the slashes in the url is, it returns an invalid url
0 -
I think what @ArborRose mentioned, and what I had missed, is that you're using the Dynamic URL option which adds the slash. Try using the Dynamic Parameter option instead.
0 -
In the base URL, do not include a slash and avoid adding a question mark if you plan to include the entire query string dynamically. When you create the dynamic parameters, do not include an initial question mark nor a slash. Format the dynamic parameters so they start directly after the base URL, something like:
Scenario=Actual&FiscalYear=2024&ApplyCreditDebit=True&$filter=FiscalMonth eq 12
You can diagnose and test using a simpler URL at first to see if it constructs correctly.
Base URL: https://example.com/api
Dynamic Parameters: param1=value1** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
No matter which combination of base url and dynamic parameters I use, it doesn't work. I can't seem to get around the "?=" it inserts in between the base url and parameter. This might just be a limitation of the Domo connector.
Appreciate your help!
0 -
If you don't need to loop through dynamic parameters then this should work, note that I have unchecked encoding on the values
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive