question

contact-17 avatar image
contact-17 asked

How to get buildid or proper output of fields in PowerShell API

I've been trying to get a list of buildids to put in a variable/string so I can then remove said multiplayer server.

I've had no luck so far.

I've outputted the servers as follows

And also tried to output just the fields with no luck.

Any help would be appreciated.

sdksmultiplayerscheduled tasks
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

contact-17 avatar image contact-17 commented ·

My apologies seems the draft function is playing up. Here is the first image that is corrupt.

0 Likes 0 ·

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

You can store the response in a variable: $resp = Get-PfBuild, then use $resp.Data.BuildSummaries.Get(index).BuildId to get the buildid. And the index is the position of your build in the BuildSummaries set, starting at 0.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.