找不到 activity activityId(参数 'activityId')
The activity activityId could not be found (Parameter 'activityId')
对于我做的工作项目
/appbundles = "NamiliftActivity" 和 appbundles/:id/aliases "beta"
但是在 /workitems 上发送数据时
axios({
method: 'POST',
url: 'https://developer.api.autodesk.com/da/us-east/v3/workitems',
headers: {
'Authorization': 'Bearer ******',
'content-type': 'application/json'
},
data: JSON.stringify({
activityId: 'BAsBRLiyiaHR1X9eYiAI4ATPmdcuZ5Pf.NamiliftActivity+beta',
arguments: {
InventorDoc: {
url: 'https://developer.api.autodesk.com/oss/v2/signedresources/1a2ac1d9-a8af-4aa2-b9d1-8b0fde21bcf3?region=US',
pathInZip: 'MasterAssembly.iam'
},
InventorParams: {
url: 'data:application/json,{"ProjectNumber":"12345","ProjectName":"8000-2016","PreparedBy":"Nami","DrawingNumber":"Nami","CommissionNumber":"","ElevatorDesignation":"","ElevatorNumber":"","Logo":"NamiLift","LanguageOptions":"ENG","Standard":"PL400","NumberOfFloor":2,"LengthOfCar":2000,"WidthOfCar":1100,"Pits":true,"PitHeight":50,"ZoneSectionStart":239,"HeightAboveTopElevator":0,"ElectricBoxSide":"a","ElectricBoxFloorNo":"0","ElectricBoxDefault":false,"OuterRoof":false,"OuterRoofSide":"A","WindowsSectionA":"0-0","WindowsSectionB":"0-5000","WindowsSectionC":"0-0","WindowsSectionD":"0-0","DefaultDoorSize":false,"Colorelevator":"RAL 9001","Colordoor":"RAL 9001","Safelinemx2":false,"Safelinemx2gsm":false,"Schoolcontrolassa":false,"Schoolcontrol":false,"Intercom":false,"Callsend":false,"Firealarmdrive":false,"Folderseat":false,"Floorvoiceannouncement":false,"Lsfcable":false,"Telephone":false,"Keyswitch":false,"Ups":false,"Comments":"-","LiftHeightLevel0":0,"DoorSideLevel0":"A","TypeOfDoorLevel0":"A1","DoorHingeLevel0":"Right","DoorSizeLevel0":900,"DoorHeightLevel0":2000,"DoorCloserLevel0":true,"CanopyLevel0":true,"CallBoxLevel0":true,"LiftHeightLevel1":5000,"DoorSideLevel1":"A","TypeOfDoorLevel1":"A1","DoorHingeLevel1":"Right","DoorSizeLevel1":900,"DoorHeightLevel1":2000,"DoorCloserLevel1":false,"CanopyLevel1":false,"CallBoxLevel1":false}',
OutputPDF: 'OutputPDF': {
'url': fileName.resultZipUrl,
'headers': {
'Authorization': 'Bearer ' + values.access_token,
'Content-type': 'application/octet-stream'
},
'verb': 'put'
},
onComplete: 'onComplete': {
'verb': 'post',
'url': config.credentials.callback_url +'/api/forge/datamanagement/signanddownload'
}
}
}
})
我收到这个 错误
The activity BAsBRLiyiaHR1X9eYiAI4ATPmdcuZ5Pf.NamiliftActivity+beta could not be found (Parameter 'activityId')
并且已经为 workItems 设置了 appbundles id
这是用于查找特定测试版的 /aliases activity
Activity 和 Appbundle 是两个不同的概念/实体。您已将您的 AppBundle 命名为 NamiliftActivity
,这不是问题。只要它使用允许的字符,您就可以为它命名。
您遇到的错误:
The activity BAsBRLiyiaHR1X9eYiAI4ATPmdcuZ5Pf.NamiliftActivity+beta could not be found (Parameter 'activityId')
正是它所说的。没有别名 beta
的 Activity NamiliftActivity
。或者有吗?您的 post 仅显示具有该名称+别名的 AppBundle。
对于我做的工作项目 /appbundles = "NamiliftActivity" 和 appbundles/:id/aliases "beta"
但是在 /workitems 上发送数据时
axios({
method: 'POST',
url: 'https://developer.api.autodesk.com/da/us-east/v3/workitems',
headers: {
'Authorization': 'Bearer ******',
'content-type': 'application/json'
},
data: JSON.stringify({
activityId: 'BAsBRLiyiaHR1X9eYiAI4ATPmdcuZ5Pf.NamiliftActivity+beta',
arguments: {
InventorDoc: {
url: 'https://developer.api.autodesk.com/oss/v2/signedresources/1a2ac1d9-a8af-4aa2-b9d1-8b0fde21bcf3?region=US',
pathInZip: 'MasterAssembly.iam'
},
InventorParams: {
url: 'data:application/json,{"ProjectNumber":"12345","ProjectName":"8000-2016","PreparedBy":"Nami","DrawingNumber":"Nami","CommissionNumber":"","ElevatorDesignation":"","ElevatorNumber":"","Logo":"NamiLift","LanguageOptions":"ENG","Standard":"PL400","NumberOfFloor":2,"LengthOfCar":2000,"WidthOfCar":1100,"Pits":true,"PitHeight":50,"ZoneSectionStart":239,"HeightAboveTopElevator":0,"ElectricBoxSide":"a","ElectricBoxFloorNo":"0","ElectricBoxDefault":false,"OuterRoof":false,"OuterRoofSide":"A","WindowsSectionA":"0-0","WindowsSectionB":"0-5000","WindowsSectionC":"0-0","WindowsSectionD":"0-0","DefaultDoorSize":false,"Colorelevator":"RAL 9001","Colordoor":"RAL 9001","Safelinemx2":false,"Safelinemx2gsm":false,"Schoolcontrolassa":false,"Schoolcontrol":false,"Intercom":false,"Callsend":false,"Firealarmdrive":false,"Folderseat":false,"Floorvoiceannouncement":false,"Lsfcable":false,"Telephone":false,"Keyswitch":false,"Ups":false,"Comments":"-","LiftHeightLevel0":0,"DoorSideLevel0":"A","TypeOfDoorLevel0":"A1","DoorHingeLevel0":"Right","DoorSizeLevel0":900,"DoorHeightLevel0":2000,"DoorCloserLevel0":true,"CanopyLevel0":true,"CallBoxLevel0":true,"LiftHeightLevel1":5000,"DoorSideLevel1":"A","TypeOfDoorLevel1":"A1","DoorHingeLevel1":"Right","DoorSizeLevel1":900,"DoorHeightLevel1":2000,"DoorCloserLevel1":false,"CanopyLevel1":false,"CallBoxLevel1":false}',
OutputPDF: 'OutputPDF': {
'url': fileName.resultZipUrl,
'headers': {
'Authorization': 'Bearer ' + values.access_token,
'Content-type': 'application/octet-stream'
},
'verb': 'put'
},
onComplete: 'onComplete': {
'verb': 'post',
'url': config.credentials.callback_url +'/api/forge/datamanagement/signanddownload'
}
}
}
})
我收到这个 错误
The activity BAsBRLiyiaHR1X9eYiAI4ATPmdcuZ5Pf.NamiliftActivity+beta could not be found (Parameter 'activityId')
并且已经为 workItems 设置了 appbundles id
这是用于查找特定测试版的 /aliases activity
Activity 和 Appbundle 是两个不同的概念/实体。您已将您的 AppBundle 命名为 NamiliftActivity
,这不是问题。只要它使用允许的字符,您就可以为它命名。
您遇到的错误:
The activity BAsBRLiyiaHR1X9eYiAI4ATPmdcuZ5Pf.NamiliftActivity+beta could not be found (Parameter 'activityId')
正是它所说的。没有别名 beta
的 Activity NamiliftActivity
。或者有吗?您的 post 仅显示具有该名称+别名的 AppBundle。