Hi,
Using Anaplan Connect, when exporting a list is there a way to capture the number of records exported?
When importing into Anaplan the record count is available but not for exporting.
Thanks.
you can add this code in your script to count the number of rows:
setlocal EnableDelayedExpansionset "myvar=findstr /R /N "^^" "my_file.csv" | find /C ":""
set numheaders=5for /f %%a in ('!myvar!') do set mycount=%%aset /A finalcount=%mycount%-!numheaders!echo %finalcount%
Regards
@Dwight_Babb
Even I haven't seen the number of records for exports. Let's ask @ben_speight
I don't think you you can, directly.
Because running an export generates a file, the API response for running an export is limited to:
"{ "meta" : { "paging" : { "currentPageSize" : 1, "offset" : 0, "totalSize" : 1 }, "schema" : "https://api.anaplan.com/2/0/models/2785AAF56C504633B8ED187F045315C1/objects/task" }, "status" : { "code" : 200, "message" : "Success" }, "tasks" : [ { "taskId" : "C61B36AA14B64CB1A0651035D8AD9CED", "taskState" : "COMPLETE", "creationTime" : 1588774876988 } ] }"
So you would have to count the number of lines in the file generated
Thanks, I was leaning towards doing something similar to this.
If you use the -emd option in Anaplan Connect just before the export, it should give you expected column and row counts that can be extracted. Be aware that another user could cause rows to be added/removed between -emd and export execution, though. Having this information in the task result sounds like a worthwhile enhancement.
The data I'm trying to import is as follows Parent-Code A B A C B D C D D E I want to generate the following list from this data: L1 L2 L3 L4 A A-B A-B-D A-B-D-E A A-C A-C-D A-C-D-E You can create up to L3.However, L4 has multiple parents for one row of data When I try to create L4 from D-E, only one list row is generated…
Hello Anaplan Community, I have a special requirement from a customer and would appreciate your input. Let me explain the situation: We have a hierarchy with three levels: Level 1, Level 2, and Level 3. Screen 1: Creation of Level 1 Items On this screen, the user selects a team. Based on their selection, an action runs to…
We are looking for Anaplan end-users to provide feedback on their experiences with the Excel add-in. Interested individuals will respond to this 5-minute survey to help us understand personal needs and behavior when using the add-in. The feedback provided by survey takers is essential to the roadmap of Anaplan's products.…