Skip to content

Commit 9827089

Browse files
committed
859
1 parent c2fa0a7 commit 9827089

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sempy_labs/_helper_functions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def create_item(
303303
payload=payload,
304304
status_codes=[201, 202],
305305
lro_return_status_code=True,
306+
client='fabric_sp',
306307
)
307308
print(
308309
f"{icons.green_dot} The '{name}' {item_type} has been successfully created within the '{workspace_name}' workspace."
@@ -407,7 +408,7 @@ def copy_item(
407408
# Get the existing source model
408409
if type == "Report" and keep_existing_bindings:
409410
result = _base_api(
410-
request=f"v1.0/myorg/groups/{target_workspace_id}/reports/{target_item_id}"
411+
request=f"v1.0/myorg/groups/{target_workspace_id}/reports/{target_item_id}", client='fabric_sp',
411412
).json()
412413
dataset_id = result.get("datasetId")
413414
dataset_workspace_id = result.get("datasetWorkspaceId")
@@ -524,6 +525,7 @@ def get_item_definition(
524525
method="post",
525526
status_codes=None,
526527
lro_return_json=True,
528+
client='fabric_sp'
527529
)
528530

529531
if return_dataframe:
@@ -574,6 +576,7 @@ def _get_item_definition(
574576
method="post",
575577
status_codes=None,
576578
lro_return_json=True,
579+
client='fabric_sp',
577580
)
578581

579582
if return_dataframe:

0 commit comments

Comments
 (0)